package com.lc.controller;

import com.lc.bean.OrderDetail;
import com.lc.service.OrderDetailService;
import com.lc.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/orderdetail")
public class OrderDetailController {

    @Autowired
    OrderDetailService orderDetailService;

    @RequestMapping("/list")
    public R list(Integer orderuuid) {
        return R.ok(orderDetailService.list(orderuuid));
    }
}
